package c_observer.a_origin;

/**
 * Created by wug on 2016/6/15 0015.
 */
public class CarMonitor {
    Car car;

    public CarMonitor(Car car) {
        this.car = car;
    }

    public void show() {
        System.out.println("当前车速："+ car.getSpeed() +"km/h");
        System.out.println("维持该车速：" + car.getRemainTime() +"s");
        System.out.println("剩余燃油：" + car.getRemainOil() + "ml");
    }
}
